<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/demo/approval/approval.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/demo/approval/approval.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ApprovalId',
                footer: "Foots",
                cnName: '转正审批',
                name: 'approval/approval',
                url: "/approval/",
                sortName: "CreateTime"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'ApprovalId',title:'ApprovalId',type:'string',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'DepartId',title:'DepartId',type:'int',width:110,align:'left',sort:true},
                       {field:'PositionId',title:'PositionId',type:'int',width:110,align:'left'},
                       {field:'EmployName',title:'EmployName',type:'string',width:110,align:'left'},
                       {field:'ResponsiblePerson',title:'ResponsiblePerson',type:'string',width:110,align:'left'},
                       {field:'EntryDate',title:'EntryDate',type:'datetime',width:150,align:'left',sort:true},
                       {field:'ApplyDate',title:'ApplyDate',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Summarize',title:'Summarize',type:'string',width:110,align:'left'},
                       {field:'Opinion',title:'Opinion',type:'string',width:110,align:'left'},
                       {field:'ApprovalStatus',title:'ApprovalStatus',type:'int',width:110,align:'left'},
                       {field:'ApprovalPerson',title:'ApprovalPerson',type:'string',width:110,align:'left'},
                       {field:'IsDelete',title:'IsDelete',type:'int',width:110,align:'left'},
                       {field:'CreateName',title:'CreateName',type:'string',width:110,align:'left'},
                       {field:'CreateTime',title:'CreateTime',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateName',title:'UpdateName',type:'string',width:110,align:'left'},
                       {field:'UpdateTime',title:'UpdateTime',type:'datetime',width:150,align:'left',sort:true}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
